/**
 * Copyright (c) Software Institude of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.model.uml.IntermediateActions;
// imports:
import org.w3c.dom.Element;

import edu.pku.sei.gefcommon.descriptor.annotation.MethodProperty;
import edu.pku.sei.modeler.model.common.*;
import edu.pku.sei.modeler.model.core.*;
import edu.pku.sei.modeler.model.xml.XMLUtility;
import edu.pku.sei.modeler.uml.modelHelper.ModelPackage;



/**
 * @generated
 *
 */
public class DestroyLinkAction extends WriteLinkAction implements IDestroyLinkAction {
	// attributes
	
	
	
	
	// references
	
	protected MetaTypedList endData;
	
	
	
	// getters & setters for attributes
	
	// getters for references
	
	public MetaTypedList getEndData() {
		if(endData == null) {
			endData = new MetaTypedList(LinkEndDestructionData.class, this, ModelPackage.DESTROYLINKACTION_ENDDATA);
		}
		return endData;
	}
	
	// save & load
	public void serialize(Element root) {
		super.serialize(root);
		// attributes
		
		// references
		
		XMLUtility.xmlInstance.serializeNodes(root, ModelPackage.DESTROYLINKACTION_ENDDATA, endData);
		
	}
	
	public void deSerialize(Element root) {
		super.deSerialize(root);
		// attributes
		
		// references
		
		this.getEndData().addAll(XMLUtility.xmlInstance.deSerializeNodes(root, ModelPackage.DESTROYLINKACTION_ENDDATA));
		
	}
	
	public void dynamicSet(String featureID, Object value) {
		if(featureID == null || "".equals(featureID)) {
			return;
		}
		// attributes
		
		// references
		
		else
			super.dynamicSet(featureID, value);
	}
}
 
 
 
 
 